//
//  HistoryDataBase.h
//  Express
//
//  Created by lanou on 16/1/14.
//  Copyright © 2016年 FJY. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "BaseHeader.h"
@class FMDatabase;
@class Express;

@interface HistoryDataBase : NSObject

@property (nonatomic, strong) FMDatabase *historyDB;
@property (nonatomic, strong) NSArray *expressesArray;

+ (HistoryDataBase *)shareHistoryDataBase;

//local
//- (void)createDBTableWithName:(NSString *)tableName;
//- (void)insertModel:(Express *)expressModel tableWithName:(NSString *)tableName;
//- (void)deleteModel:(Express *)expressModel tableWithName:(NSString *)tableName;
//- (NSMutableArray *)selectModelsWithtableWithName:(NSString *)tableName;

//cloud
- (void)insertSingleDataToCloudDBWithModel:(Express *)expressModel;
- (void)deleteSingleDataFromCloudDBWithModel:(Express *)expressModel;
- (Express *)selectSingleDataFromCloudDBWithModel:(Express *)expressModel;

//- (void)insertMultipleDataToCloudDBWithModel:(Express *)expressModel;
//- (void)deleteMultipleDataFromCloudDBWithModel:(Express *)expressModel;
- (NSMutableArray *)selectMultipleDataFromCloudDB;

- (void)updateFromCloudDBWithModel:(Express *)expressModel;


@end
